Learn R Programming

destiny (version 2.0.4)

DPT methods: DPT methods

Description

Methods for the DPT class. branch_divide subdivides branches for plotting (see the examples).

Usage

branch_divide(dpt, divide = integer(0L))

# S4 method for DPT dataset(object)

# S4 method for DPT dataset(object) <- value

Arguments

dpt, object
DPT object
divide
Vector of branch numbers to use for division
value
Value of slot to set

Value

branch_divide and dataset<- return the changed object, dataset the extracted data.

See Also

plot.DPT uses branch_divide for its divide argument.

Examples

Run this code
data(guo_norm)
dpt <- DPT(DiffusionMap(guo_norm))
dpt_9_branches <- branch_divide(dpt, 1:3)
plot(dpt_9_branches, col_by = 'branch')

Run the code above in your browser using DataLab